package com.warmheart.builder.user;

import com.warmheart.core.co.base.BaseCoBuilder;
import com.warmheart.core.co.oper.Co;
import com.warmheart.entity.user.UserLogin;

/**
 * 
 * @ClassName: UserLogin
 * @Description: 用户登录实体CoBuilder类，对应表名称为tb_user_login
 *               温馨提示：不要修改该实体CoBuilder类的任何字段
 * @author ZhangJianyang
 * @date 2025-06-16 09:37:02
 *
 */
public class UserLoginCoBuilder extends BaseCoBuilder<UserLogin, UserLoginCoBuilder> {

    private final UserLogin t;

    @Override
    protected UserLoginCoBuilder self() {
        return this;
    }

    @Override
    public UserLogin core() {
        return this.t;
    }

    public UserLoginCoBuilder(UserLogin userLogin) {
        t = userLogin;
    }

    /**
     * 用户ID
     */
    private Co<UserLogin, UserLoginCoBuilder> userId;

    /**
     * 登录类型(01~~~手机号码+验证码)
     */
    private Co<UserLogin, UserLoginCoBuilder> loginType;

    /**
     * 登录名(同手机号码)
     */
    private Co<UserLogin, UserLoginCoBuilder> loginName;

    /**
     * 密码
     */
    private Co<UserLogin, UserLoginCoBuilder> passWd;

    /**
     * 盐值
     */
    private Co<UserLogin, UserLoginCoBuilder> salt;

    /**
     * 状态
     */
    private Co<UserLogin, UserLoginCoBuilder> status;

    public Co<UserLogin, UserLoginCoBuilder> userId() {
        if (this.userId == null) {
            this.userId = new Co<UserLogin, UserLoginCoBuilder>(self(), "user_id");
        }
        return this.userId;
    }

    public Co<UserLogin, UserLoginCoBuilder> loginType() {
        if (this.loginType == null) {
            this.loginType = new Co<UserLogin, UserLoginCoBuilder>(self(), "login_type");
        }
        return this.loginType;
    }

    public Co<UserLogin, UserLoginCoBuilder> loginName() {
        if (this.loginName == null) {
            this.loginName = new Co<UserLogin, UserLoginCoBuilder>(self(), "login_name");
        }
        return this.loginName;
    }

    public Co<UserLogin, UserLoginCoBuilder> passWd() {
        if (this.passWd == null) {
            this.passWd = new Co<UserLogin, UserLoginCoBuilder>(self(), "pass_wd");
        }
        return this.passWd;
    }

    public Co<UserLogin, UserLoginCoBuilder> salt() {
        if (this.salt == null) {
            this.salt = new Co<UserLogin, UserLoginCoBuilder>(self(), "salt");
        }
        return this.salt;
    }

    public Co<UserLogin, UserLoginCoBuilder> status() {
        if (this.status == null) {
            this.status = new Co<UserLogin, UserLoginCoBuilder>(self(), "status");
        }
        return this.status;
    }
}